﻿// Copyright (c) 2006 Antu Corporation。 
// 创建人  ：LinJian
// 创建时间：2007-3-23 15:00:35
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace Antu.Business.Config
{
    #region 自定义配置节点的子节点(GDO的连接信息)
    /// <!--
    /// 功能描述  : 自定义配置节点的子节点(GDO的连接信息)
    /// 创建人  : LinJian
    /// 创建时间: 2007-3-23 15:00:48
    /// 修改人  : 暂无他人修改
    /// 修改时间: 2007-3-23 15:00:50
    /// -->
    public class ChildSectionForGdo : ConfigurationElement
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ChildSectionForGdo()
        {
        }

        /// <summary>
        /// 构造函数(设置属性值)
        /// </summary>
        /// <param name="strAttributeVal">属性值</param>
        public ChildSectionForGdo(string strAttributeVal)
        {
            SectionDescription = strAttributeVal;
        }

        /// <summary>
        /// 自定义字节属性值(节点描述)
        /// </summary>
        [ConfigurationProperty("SectionDescription", DefaultValue = "Gdo连接信息", IsRequired = false)]
        [StringValidator(InvalidCharacters = "~()[]{}/;'\"|\\", MinLength = 1, MaxLength = 100)]
        public String SectionDescription
        {
            get
            {
                return (String)this["SectionDescription"];
            }
            set
            {
                this["SectionDescription"] = value;
            }
        }

        #region 自定义子字节
        /// <summary>
        /// 自定义字节名(Ldc连接信息)
        /// </summary>
        [ConfigurationProperty("LdcCon")]
        public ChildSectionForLdc LdcCon
        {
            get
            {
                return (ChildSectionForLdc)this["LdcCon"];
            }
            set
            {
                this["LdcCon"] = value;
            }
        }

        /// <summary>
        /// 自定义字节名(GdoSys连接信息)
        /// </summary>
        [ConfigurationProperty("GdoSysCon")]
        public ChildSectionForGdoSys GdoSysCon
        {
            get
            {
                return (ChildSectionForGdoSys)this["GdoSysCon"];
            }
            set
            {
                this["GdoSysCon"] = value;
            }
        }

        /// <summary>
        /// 自定义字节名(GDO连接信息)
        /// </summary>
        [ConfigurationProperty("LibraryCon")]
        public ChildSectionForLibrary LibraryCon
        {
            get
            {
                return (ChildSectionForLibrary)this["LibraryCon"];
            }
            set
            {
                this["LibraryCon"] = value;
            }
        } 
        #endregion
    } 
    #endregion

    #region LDC中心数据库的连接信息
    /// <!--
    /// 功能描述  : LDC中心数据库的连接信息
    /// 创建人  : LinJian
    /// 创建时间: 2007-3-23 15:00:48
    /// 修改人  : 暂无他人修改
    /// 修改时间: 2007-3-23 15:00:50
    /// -->
    public class ChildSectionForLdc : ConfigurationElement
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ChildSectionForLdc()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="strLdcUser">oracle登陆用户名</param>
        /// <param name="strLdcPwd">oracle登陆密码</param>
        /// <param name="strLdcService">oracle登陆服务</param>
        public ChildSectionForLdc(string strLdcUser, string strLdcPwd, string strLdcService)
        {
            LdcAdminUser = strLdcUser;
            LdcAdminPwd = strLdcPwd;
            LdcService = strLdcService;
        }

        /// <summary>
        /// 自定义字节属性(oracle登陆用户名)
        /// </summary>
        [ConfigurationProperty("LdcAdminUser", DefaultValue = "landinfo", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 30)]
        public String LdcAdminUser
        {
            get
            {
                return (String)this["LdcAdminUser"];
            }
            set
            {
                this["LdcAdminUser"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(oracle登陆密码)
        /// </summary>
        [ConfigurationProperty("LdcAdminPwd", DefaultValue = "1", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 30)]
        public String LdcAdminPwd
        {
            get
            {
                return (String)this["LdcAdminPwd"];
            }
            set
            {
                this["LdcAdminPwd"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(oracle服务)
        /// </summary>
        [ConfigurationProperty("LdcService", DefaultValue = "cdgtdb", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 30)]
        public String LdcService
        {
            get
            {
                return (String)this["LdcService"];
            }
            set
            {
                this["LdcService"] = value;
            }
        }
    } 
    #endregion

    #region GdoSys系统数据库的连接信息
    /// <!--
    /// 功能描述  : GdoSys系统数据库的连接信息
    /// 创建人  : LinJian
    /// 创建时间: 2007-3-23 15:00:48
    /// 修改人  : 暂无他人修改
    /// 修改时间: 2007-3-23 15:00:50
    /// -->
    public class ChildSectionForGdoSys : ConfigurationElement
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ChildSectionForGdoSys()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="strGdoSysUser">oracle登陆用户名</param>
        /// <param name="strGdoSysPwd">oracle登陆密码</param>
        /// <param name="strGdoSysService">oracle登陆服务</param>
        public ChildSectionForGdoSys(string strGdoSysUser, string strGdoSysPwd, string strGdoSysService)
        {
            GdoSysAdminUser = strGdoSysUser;
            GdoSysAdminPwd = strGdoSysPwd;
            GdoSysService = strGdoSysService;
        }

        /// <summary>
        /// 自定义字节属性(oracle登陆用户名)
        /// </summary>
        [ConfigurationProperty("GdoSysAdminUser", DefaultValue = "gdosys", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 30)]
        public String GdoSysAdminUser
        {
            get
            {
                return (String)this["GdoSysAdminUser"];
            }
            set
            {
                this["GdoSysAdminUser"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(oracle登陆密码)
        /// </summary>
        [ConfigurationProperty("GdoSysAdminPwd", DefaultValue = "gdosys", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength =30)]
        public String GdoSysAdminPwd
        {
            get
            {
                return (String)this["GdoSysAdminPwd"];
            }
            set
            {
                this["GdoSysAdminPwd"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(oracle服务)
        /// </summary>
        [ConfigurationProperty("GdoSysService", DefaultValue = "cdgtdb", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 30)]
        public String GdoSysService
        {
            get
            {
                return (String)this["GdoSysService"];
            }
            set
            {
                this["GdoSysService"] = value;
            }
        }
    }
    #endregion

    #region Library中心数据库的连接信息
    /// <!--
    /// 功能描述  : Library中心数据库的连接信息
    /// 创建人  : LinJian
    /// 创建时间: 2007-3-23 15:00:48
    /// 修改人  : 暂无他人修改
    /// 修改时间: 2007-3-23 15:00:50
    /// -->
    public class ChildSectionForLibrary : ConfigurationElement
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ChildSectionForLibrary()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="strLibraryUser">oracle登陆用户名</param>
        /// <param name="strLibraryPwd">oracle登陆密码</param>
        /// <param name="strLibraryService">oracle登陆服务</param>
        public ChildSectionForLibrary(string strLibraryUser, string strLibraryPwd, string strLibraryService)
        {
            LibraryAdminUser = strLibraryUser;
            LibraryAdminPwd = strLibraryPwd;
            LibraryService = strLibraryService;
        }

        /// <summary>
        /// 自定义字节属性(oracle登陆用户名)
        /// </summary>
        [ConfigurationProperty("LibraryAdminUser", DefaultValue = "landinfoLIB", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 30)]
        public String LibraryAdminUser
        {
            get
            {
                return (String)this["LibraryAdminUser"];
            }
            set
            {
                this["LibraryAdminUser"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(oracle登陆密码)
        /// </summary>
        [ConfigurationProperty("LibraryAdminPwd", DefaultValue = "1", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 30)]
        public String LibraryAdminPwd
        {
            get
            {
                return (String)this["LibraryAdminPwd"];
            }
            set
            {
                this["LibraryAdminPwd"] = value;
            }
        }

        /// <summary>
        /// 自定义字节属性(oracle服务)
        /// </summary>
        [ConfigurationProperty("LibraryService", DefaultValue = "cdgtdb", IsRequired = true)]
        [StringValidator(InvalidCharacters = "~!@#$%^&*()[]{}/;'\"|\\", MinLength = 1, MaxLength = 30)]
        public String LibraryService
        {
            get
            {
                return (String)this["LibraryService"];
            }
            set
            {
                this["LibraryService"] = value;
            }
        }
    }
    #endregion
}
